package com.yj.lottery_system.common.filter;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.Filter;
import ch.qos.logback.core.spi.FilterReply;

public class InfoLevelFilter extends Filter<ILoggingEvent> {
   @Override
   public FilterReply decide(ILoggingEvent iLoggingEvent) {
     if (iLoggingEvent.getLevel().toInt() == Level.INFO.toInt()){

      return FilterReply.ACCEPT;
     }
    return FilterReply.DENY;

   }

 }
